package com.github.wxpay.sdk;

import lombok.Getter;
import lombok.Setter;

import java.io.InputStream;

/**
 * @ClassName LinWxPayConfig
 * @Description TODO
 * @Author wushaopei
 * @Date 2021/4/11 10:42
 * @Version 1.0
 */
public class LinWxPayConfig extends WXPayConfig {
    /**
     * @Description TODO appId 可以在小程序后台获取
     * @return
     */
    @Override
    public String getAppID() {
        return "wx4xxxxxxx";
    }

    /**
     * @Description TODO mchId  商户ID，微信支付的商户平台后台获取
     * @return
     */
    @Override
    String getMchID() {
        return "1589111117";
    }

    /**
     * @Description TODO key 商户平台的MchID所对应的key，也是在商户平台获取的。
     * @return
     */
    @Override
    public String getKey() {
        return "yDDDsDv6kFG1qXXX6jP";
    }

    @Override
    InputStream getCertStream() {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain() {
        IWXPayDomain iwxPayDomain = new IWXPayDomain() {
            @Override
            public void report(String domain, long elapsedTimeMillis, Exception ex) {


            }

            @Override
            public DomainInfo getDomain(WXPayConfig config) {
                return null;
            }
        };
        return iwxPayDomain;
    }
}
